/************************************************************
 * Project Name         [Thinking_In_Java]
 * File Name            [UserInfo.java]
 * Creation Date        [23-Jul-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 ************************************************************/
package pkg_principles.srp.example01;

/**
 * Implementation class of IUserInfo
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class UserInfo implements IUserInfo {

	private String userID;
	private String username;
	private String password;

	@Override
	public void setUserID(String userID) {
		System.out.println("设置UserID...");
		this.userID = userID;
	}

	@Override
	public String getUserId() {
		System.out.println("获得UserID...");
		return userID;
	}

	@Override
	public void setPassword(String password) {
		System.out.println("设置Password...");
		this.password = password;
	}

	@Override
	public String getPassword() {
		System.out.println("获得Password...");
		return password;
	}

	@Override
	public void setUsername(String username) {
		System.out.println("设置Username...");
		this.username = username;
	}

	@Override
	public String getUsername() {
		System.out.println("获得Username...");
		return username;
	}

	@Override
	public void addUser(IUserBO userBo) {
		System.out.println("添加用户成功...");
	}

	@Override
	public boolean deleteUser(String userId) {
		System.out.println("删除用户成功...");
		return true;
	}

	@Override
	public boolean updatePassword(String oldPassword, String newPassword,
			String confirmedNewPassword) {
		System.out.println("更新密码成功...");
		return true;
	}

	@Override
	public IUserBO searchUserById(String userId) {
		System.out.println("根据ID查找用户...");
		return null;
	}

	@Override
	public IUserBO searchUserByName(String username) {
		System.out.println("根据Username查找用户...");
		return null;
	}

}
